﻿
Partial Class MasterPage
    Inherits System.Web.UI.MasterPage

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        Dim name As String = ""

        'If Session("users") IsNot Nothing Then
        name = Session("users")
        'Else
        'Response.Redirect("~/LoginForm.aspx")
        'End If

        'Dim adapter As New LoginDSTableAdapters.LoginLogTableAdapter
        'Dim exist As Integer
        'exist = adapter.CheckExist(Session("users"), Session.SessionID)
        'If exist = 0 Then
        'Response.Redirect("~/LoginForm.aspx")
        'End If

        usr_name.InnerText = "ยินดีต้อนรับ " & name
        code_version.InnerText = ConfigurationManager.AppSettings("appVersion")

        Session.LCID = 1054
    End Sub
End Class

